package cn.findviewbydream.evil.main.dto;

import cn.findviewbydream.evil.main.entity.PostEntity;
import cn.findviewbydream.evil.main.entity.PostPraiseEntity;

import java.io.Serializable;
import java.util.List;

/********************************************
 * 工程名：HebeuCS
 * 包名：cn.findviewbydream.evil.main.dto
 * 时间：16-11-7 上午11:53
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：包含贴子实体和该贴子点赞实体
 ********************************************/
public class PostBean implements Serializable
{
    private PostEntity post;/*贴子实体*/
    private List<PostPraiseEntity> postPraise;/*该贴子点赞实体*/
    private boolean userPraise;/*此用户是否点赞*/

    public PostBean(PostEntity post, List<PostPraiseEntity> postPraise, boolean userPraise)
    {
        this.post = post;
        this.postPraise = postPraise;
        this.userPraise = userPraise;
    }

    public PostEntity getPost()
    {
        return post;
    }

    public void setPost(PostEntity post)
    {
        this.post = post;
    }

    public List<PostPraiseEntity> getPostPraise()
    {
        return postPraise;
    }

    public void setPostPraise(List<PostPraiseEntity> postPraise)
    {
        this.postPraise = postPraise;
    }

    public boolean isUserPraise()
    {
        return userPraise;
    }

    public void setUserPraise(boolean userPraise)
    {
        this.userPraise = userPraise;
    }

    @Override
    public String toString()
    {
        return "PostBean{" +
                "post=" + post +
                ", postPraise=" + postPraise +
                ", userPraise=" + userPraise +
                '}';
    }
}
